package Computer;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class WriteAver {
		public static void main(String args[]) {
	      try {
	    	  String filePath = "D:/Goods/Goods.txt";
	    	  File file = new File(filePath);
	    	  FileWriter writer = new FileWriter(file,true);
	    	  String contentToAppend = "平均价格：4234.000\n";
	    	  writer.write(contentToAppend);
	    	  writer.close();
	    	  System.out.println("成功添加");
	      }catch(IOException e){
	    	  System.out.println(e);
	      }
	    	  
	    			  
	      }

}
